package com.tcm.smarthealth.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Schema(name = "QuestionCreateRequest", description = "智能问答提交请求")
public class QuestionCreateRequest {

    @Schema(description = "提问内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "最近总是头晕乏力怎么办？")
    @NotBlank(message = "问题内容不能为空")
    @Size(max = 2000, message = "问题内容请控制在2000字以内")
    private String content;

    @Schema(description = "问答类型：TCM/WESTERN/HYBRID", requiredMode = Schema.RequiredMode.REQUIRED, example = "HYBRID")
    @NotNull(message = "请选择问答类型")
    private String type;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}

